<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>待办事项列表</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="container">
        <h1>我的待办事项</h1>
        
        <!-- 添加任务部分 -->
        <div class="add-task">
            <input type="text" id="taskInput" placeholder="添加新任务..." autofocus>
            <button id="addTaskBtn">添加</button>
        </div>
        
        <!-- 任务过滤部分 -->
        <div class="filters">
            <button class="filter-btn active" data-filter="all">全部</button>
            <button class="filter-btn" data-filter="active">进行中</button>
            <button class="filter-btn" data-filter="completed">已完成</button>
        </div>
        
        <!-- 任务列表 -->
        <ul id="taskList" class="task-list">
            <!-- 任务项将通过JavaScript动态添加 -->
        </ul>
        
        <!-- 任务统计 -->
        <div class="task-stats">
            <span id="taskCount">0 个任务</span>
            <button id="clearCompletedBtn" class="clear-btn">清空已完成</button>
        </div>
    </div>
    
    <script src="script.js"></script>
</body>
</html>